
//
//  firstModel.m
//  试验品
//
//  Created by romana on 16/5/19.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "firstModel.h"
#import "SecondModel.h"

@implementation firstModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}

-(void)setCategory_list:(NSMutableArray *)category_list{

    _category_list = category_list;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _category_list) {
        SecondModel *model = [[SecondModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }

    _category_list = [NSMutableArray arrayWithArray:array];
}


@end
